<?php

/**
 * Created by PhpStorm.
 * User: raymon
 * Date: 17-7-19
 * Time: 下午8:35
 */
class Welcome extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->model('mod/article_model');
        $this->_add_style_sheet("MetroUI", base_url("assets/css/MetroUI.css"));
        $this->_add_script_file("MetroUI", base_url("assets/js/MetroUI.js"));
        $this->data_common['myurl'] = array(
            'article' => site_url('mod/article/article/view/')
        );

    }

    public function index()
    {
        $data = array();
        $data['article']['list'] = $this->article_model->get_articleList();
        $this->_view('welcome.twig', $data, '', 'welcome');
    }
}